<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="../webjars/bootstrap/3.3.7-1/css/bootstrap.css" />
<link rel="stylesheet" href="../static/jquery-easyui-1.5.5.3/themes/material-teal/easyui.css" />
<link rel="stylesheet" href="../static/jquery-easyui-1.5.5.3/themes/icon.css" />
<script src="../static/jquery-easyui-1.5.5.3/jquery.min.js"></script>
<script src="../static/jquery-easyui-1.5.5.3/jquery.easyui.min.js"></script>
<script src="../static/jquery-easyui-1.5.5.3/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
	$(function(){
		$("#t_user").datagrid({
			idField: 'id',
			title: '租户列表',
			fitColumns: true,
			width: '100%',
			striped: true,
			loadMsg: '数据正在加载...',
			rownumbers: true,
			url: 'lesseeList',
			columns: [
				[
					{
						field: 'id',
						title: '序号',
						width: 100,
						align: 'center'
					},{
						field: 'name',
						title: '租户名称',
						width: 150,
						align: 'center'
					},{
						field: 'linkman',
						title: '联系人',
						width: 150,
						align: 'center'
					},{
						field: 'phone',
						title: '联系电话',
						width: 200,
						align: 'center'
					},{
						field: 'lesseeAdmin',
						title: '租户管理员',
						width: 200,
						align: 'center',
						formatter: function(value){   //easyui取嵌套类对象的值
							return value.unit;
						}
					}
				]
			],
			pagination: true,
			pageSize: 5,
			pageList: [5, 10, 20, 25, 50]
		});
	});
</script>
</head>
<body>
<table id="t_user"> </table>
</body>
</html>